package MainPanels;

import java.awt.*;
import javax.swing.*;
import NewTablePanels.*;

/*
 * This panel appears after the user has selected the type of new object he wants to add to the database
 * (by clicking on the associated button on the 'SelectNewObjectpanel')
 * It appears on the right side of the 'MainForm' and contains the textfields that are needed to get the
 * single attributes of the new object.
 */

public class AddObjectPanel extends JPanel {
	
	private NewAirplaneTable newAirplaneTable;
	private NewAirportTable newAirportTable;
	private NewCompanyTable newCompanyTable;
	private NewFlightTable newFlightTable;
	private NewMenueTable newMenueTable;
	private NewPassengerclassTable newPassengerclassTable;
	private NewPassengerTable newPassengerTable;
	private NewSeatsTable newSeatsTable;
	private NewTripTable newTripTable;
	
	public AddObjectPanel()
	{
		newAirplaneTable = new NewAirplaneTable();
		newAirportTable = new NewAirportTable();
		newCompanyTable = new NewCompanyTable();
		newFlightTable = new NewFlightTable();
		newMenueTable = new NewMenueTable();
		newPassengerclassTable = new NewPassengerclassTable();
		newPassengerTable = new NewPassengerTable();
		newSeatsTable = new NewSeatsTable();
		newTripTable = new NewTripTable();
		
		this.add(newAirplaneTable);
		this.add(newAirportTable);
		this.add(newCompanyTable);
		this.add(newFlightTable);
		this.add(newMenueTable);
		this.add(newPassengerclassTable);
		this.add(newPassengerTable);
		this.add(newSeatsTable);
		this.add(newTripTable);
		
		this.setBackground(Color.YELLOW);			// just for test purposes
	}
	
}
